package org.gpp.proj1.logic.profile;

import java.io.Serializable;

public class Statistics implements Serializable {
	
	private static final long serialVersionUID = 2061339534836573933L;
	
	private int spentMoney;
	private int playTime;
	private int startedBattles;
	private int wins;
	private int loses;
	private int abandons;

	public int getAbandons() {
		return abandons;
	}
	
	public int getLoses() {
		return loses;
	}
	
	public int getPlayTime() {
		return playTime;
	}
	
	public int getSpentMoney() {
		return spentMoney;
	}
	
	public int getStartedBattles() {
		return startedBattles;
	}
	
	public int getWins() {
		return wins;
	}
	
	public void addSpentMoney(int amount) {
		if (amount <= 0) {
			throw new IllegalArgumentException("Should be positive value: " + amount);
		}
		
		this.spentMoney += amount;
	}
}
